--- a/tests/fixtures/reftests/svg1.1/masking-intro-01-f.svg
+++ /dev/null
@@ -1,81 +0,0 @@
-<svg version="1.1" baseProfile="full" id="svg-root"
-  width="100%" height="100%" viewBox="0 0 480 360"
-  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <!--======================================================================-->
-  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
-  <!--======================================================================-->
-  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
-  <!--=  Institute of Technology, European Research Consortium for         =-->
-  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
-  <!--=  All Rights Reserved.                                              =-->
-  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
-  <!--======================================================================-->
-  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
-    template-version="1.4" reviewer="CL" author="BB" status="accepted"
-    version="$Revision: 1.6 $" testname="$RCSfile: masking-intro-01-f.svg,v $">
-    <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/masking.html#Introduction">
-      <p>
-        The rules are different regarding the geometry of a shape when clipping and masking.
-        For example, a clip-path does not take into account the stroke of the shape used for clipping.
-        It is however, used when masking.
-      </p>
-    </d:testDescription>
-    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        Run the test. No interaction required.
-      </p>
-    </d:operatorScript>
-    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        The test is passed if there are two identical darkblue circles at the top of the illustration, and
-        below those two circles, two more circles should appear. They are of lighter appearance,
-        the one on the left has a darker and thick stroke.
-      </p>
-    </d:passCriteria>
-  </d:SVGTestCase>
-  <title id="test-title">$RCSfile: masking-intro-01-f.svg,v $</title>
-  <defs>
-    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
-      <font-face-src>
-        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
-      </font-face-src>
-    </font-face>
-  </defs>
-  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
-    <g shape-rendering="geometricPrecision">
-      <title id="test-title">masking-mask-04-f.svg</title>
-      <desc id="test-desc">Tests the impact of strokes within clipPath and mask</desc>
-      <text font-size="18" x="240" y="35" text-anchor="middle">Testing stroke inclusion for 'clip-path' and 'mask'</text>
-
-      <defs>
-        <clipPath id="one" clipPathUnits="objectBoundingBox">
-          <circle cx="0.3" cy="0.5" r="0.2" stroke-width="0.15" fill="none" stroke="red"/>
-          <circle cx="0.7" cy="0.5" r="0.2" stroke-width="0.15" fill="none" stroke="none"/>
-        </clipPath>
-      </defs>
-
-      <rect x="150" y="0" width="200" height="200" fill="darkblue" clip-path="url(#one)"/>
-      <text x="50" y="110">With a 'clip-path':</text>
-
-      <defs>
-        <mask id="two" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox" color-interpolation="linearRGB">
-          <circle cx="0.3" cy="0.5" r="0.2" stroke-width="0.15" fill="blue" stroke="red"/>
-          <circle cx="0.7" cy="0.5" r="0.2" stroke-width="0.15" fill="blue" stroke="none"/>
-        </mask>
-      </defs>
-
-      <rect x="150" y="150" width="200" height="200" fill="darkblue" mask="url(#two)"/>
-      <text x="50" y="260">With a 'mask':</text>
-    </g>
-  </g>
-  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
-    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
-  </g>
-  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
-  <!-- comment out this watermark once the test is approved -->
-  <!--<g id="draft-watermark">
-    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
-    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
-      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
-  </g>-->
-</svg>
--- a/tests/fixtures/reftests/svg1.1/masking-mask-01-b.svg
+++ /dev/null
@@ -1,131 +0,0 @@
-<svg version="1.1" baseProfile="basic" id="svg-root"
-  width="100%" height="100%" viewBox="0 0 480 360"
-  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <!--======================================================================-->
-  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
-  <!--======================================================================-->
-  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
-  <!--=  Institute of Technology, European Research Consortium for         =-->
-  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
-  <!--=  All Rights Reserved.                                              =-->
-  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
-  <!--======================================================================-->
-  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
-    template-version="1.4" reviewer="SVGWG" author="Haroon Sheikh" status="accepted"
-    version="$Revision: 1.8 $" testname="$RCSfile: masking-mask-01-b.svg,v $">
-    <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/masking.html#Masking">
-      <p>
-        Test to see if the masking features using the mask element and mask
-        property are available.
-      </p>
-      <p>
-        A red rectangle is displayed in the background to help view the result
-        of transparency and masking.
-      </p>
-      <p>
-        From top to bottom, the tests are as follows.
-      </p>
-      <p>
-        In the top test, a linear gradient is used inside the mask to change the opacity
-        of the rectangle from 1.0 (at the top) to 0.5 (at the bottom).
-      </p>
-      <p>
-        In the second test, a simple 50% opaque rectangle is used as a mask.
-      </p>
-      <p>
-        In the third test, no mask is used, but a rectangle is shown with 50% opacity.
-        The second and third test should look the same.
-      </p>
-      <p>
-        Lastly, a string of text has a mask applied to it. The mask only covers a partial
-        area of the text, so the text should only be half visible. Also the mask consists
-        of 4 rectangles with various levels of opacity.
-      </p>
-    </d:testDescription>
-    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        Run the test. No interaction required.
-      </p>
-    </d:operatorScript>
-    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        The rendered picture should match the reference image, except
-        variations are possible in the labelling text (per CSS2 rules).
-      </p>
-    </d:passCriteria>
-  </d:SVGTestCase>
-  <title id="test-title">$RCSfile: masking-mask-01-b.svg,v $</title>
-  <defs>
-    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
-      <font-face-src>
-        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
-      </font-face-src>
-    </font-face>
-  </defs>
-  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
-  <style type="text/css">
-  @font-face {
-     font-family: larabie-anglepoise;
-     src: url(woffs/anglepoi.woff) format("woff");
-     }
-  </style>
-    <defs>
-      <font horiz-adv-x="313">
-        <!-- Converted from Larabie Anglepoise by Batik ttf2svg -->
-        <font-face font-family="larabie-anglepoise" units-per-em="1000" panose-1="0 0 4 0 0 0 0 0 0 0" ascent="703" descent="-300" alphabetic="0"/>
-        <missing-glyph horiz-adv-x="500" d="M63 0V700H438V0H63ZM125 63H375V638H125V63Z"/>
-        <glyph unicode="S" glyph-name="S" horiz-adv-x="385" d="M371 1H29V144H264Q264 151 264 166Q265 180 265 188Q265 212 249 212H132Q83 212 55 247Q29 279 29 329V566H335V422H136V375Q136 360 144 356Q148 355 168 355H279Q327 355 352 309Q371 273 371 221V1Z"/>
-        <glyph unicode="V" glyph-name="V" horiz-adv-x="351" d="M365 563L183 -33L0 563H101L183 296L270 563H365Z"/>
-        <glyph unicode="G" glyph-name="G" horiz-adv-x="367" d="M355 1H18V564H355V420H125V144H248V211H156V355H355V1Z"/>
-        <hkern g1="V" g2="G" k="-40"/>
-      </font>
-    </defs>
-    <g font-family="SVGFreeSansASCII,sans-serif">
-    <text font-size="14" x="10" y="20">Test for mask support</text>
-    <!-- Draw a red rectangle in the background -->
-    <rect x="10" y="30" width="100" height="260" fill="red"/>
-    <!-- Apply a gradient ramp based opacity -->
-    <mask id="mask1" maskUnits="userSpaceOnUse" x="60" y="50" width="100" height="60" color-interpolation="linearRGB">
-      <defs>
-        <linearGradient gradientUnits="userSpaceOnUse" id="Grad1" x1="60" y1="50" x2="60" y2="120">
-          <stop stop-color="white" stop-opacity="1" offset="0"/>
-          <stop stop-color="white" stop-opacity="0.5" offset="1"/>
-        </linearGradient>
-      </defs>
-      <rect x="60" y="50" width="100" height="60" fill="url(#Grad1)"/>
-    </mask>
-    <rect x="60" y="50" width="100" height="60" fill="lime" mask="url(#mask1)"/>
-    <text font-size="12" x="200" y="65">Mask with linear gradient from</text>
-    <text font-size="12" x="200" y="80">opacity=1 to opactity=0.5</text>
-    <!-- Simulate a uniform opacity using a mask -->
-    <mask id="mask2" maskUnits="userSpaceOnUse" x="60" y="120" width="100" height="30" color-interpolation="linearRGB">
-      <rect x="60" y="120" width="100" height="30" fill-opacity="0.5" fill="white"/>
-    </mask>
-    <rect x="60" y="120" width="100" height="30" fill="lime" mask="url(#mask2)"/>
-    <text font-size="12" x="200" y="135">Mask with uniform opacity of 0.5</text>
-    <!-- Apply a uniform opacity -->
-    <rect x="60" y="160" width="100" height="30" fill="lime" fill-opacity="0.5"/>
-    <text font-size="12" x="200" y="175">Rectangle with uniform opacity of 0.5</text>
-    <!-- Apply a mask to text -->
-    <mask id="mask3" maskUnits="userSpaceOnUse" x="60" y="200" width="200" height="100" color-interpolation="linearRGB">
-      <rect x="60" y="200" width="200" height="25" fill="white" fill-opacity="0.5"/>
-      <rect x="60" y="225" width="200" height="25" fill="white" fill-opacity="0.2"/>
-      <rect x="60" y="250" width="200" height="25" fill="white" fill-opacity="1"/>
-      <rect x="60" y="275" width="200" height="25" fill="white" fill-opacity="0.7"/>
-    </mask>
-    <text x="60" y="280" font-family="larabie-anglepoise" font-size="110" fill="lime" mask="url(#mask3)">SVG</text>
-    <text  font-size="12" x="200" y="225">Text with mask containing rectangles</text>
-    <text  font-size="12" x="200" y="240">of various opacities</text>
-    </g>
-  </g>
-  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
-    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text>
-  </g>
-  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
-  <!-- comment out this watermark once the test is approved -->
-  <!--<g id="draft-watermark">
-    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
-    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
-      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
-  </g>-->
-</svg>
--- a/tests/fixtures/reftests/svg1.1/masking-mask-02-f.svg
+++ /dev/null
@@ -1,50 +0,0 @@
-<svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <!--======================================================================-->
-  <!--=  Copyright 2008 World Wide Web Consortium, (Massachusetts          =-->
-  <!--=  Institute of Technology, European Research Consortium for         =-->
-  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
-  <!--=  All Rights Reserved.                                              =-->
-  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
-  <!--======================================================================-->
-  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.4" reviewer="CL" author="Microsoft" status="accepted" version="$Revision: 1.3 $" testname="$RCSfile: masking-mask-02-f.svg,v $">
-    <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/publish/masking.html#Masking">
-      <p>
-        If the 'mask' property references a 'mask' element containing no children, the element referencing it is not rendered.
-      </p>
-    </d:testDescription>
-    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
-			<p>Run the test. No interaction required.</p>
-    </d:operatorScript>
-    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        Test passes if there is a single green rectangle, with no red visible on the page.
-      </p>
-    </d:passCriteria>
-  </d:SVGTestCase>
-  <title id="test-title">$RCSfile: masking-mask-02-f.svg,v $</title>
-    <defs>
-    <font-face
-      font-family="SVGFreeSansASCII"
-      unicode-range="U+0-7F">
-      <font-face-src>
-        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
-      </font-face-src>
-    </font-face>
-  </defs>
-  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
-    <mask id="testMask" />
-    <rect x="100" y="100" width="250" height="150" fill="green" />
-    <rect x="100" y="100" width="250" height="150" fill="red" mask="url(#testMask)" />
-  </g>
-  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
-    <text id="revision" x="10" y="340" stroke="none"
-      fill="black">$Revision: 1.3 $</text>
-  </g>
-  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
-  <!-- comment out this watermark once the test is approved
-  <g id="draft-watermark">
-    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
-    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
-      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
-  </g>-->
-</svg>
\ No newline at end of file
--- a/tests/fixtures/reftests/svg1.1/masking-opacity-01-b.svg
+++ /dev/null
@@ -1,125 +0,0 @@
-<svg version="1.1" baseProfile="basic" id="svg-root"
-  width="100%" height="100%" viewBox="0 0 480 360"
-  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <!--======================================================================-->
-  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
-  <!--======================================================================-->
-  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
-  <!--=  Institute of Technology, European Research Consortium for         =-->
-  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
-  <!--=  All Rights Reserved.                                              =-->
-  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
-  <!--======================================================================-->
-  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
-    template-version="1.4" reviewer="SVGWG" author="Haroon Sheikh" status="accepted"
-    version="$Revision: 1.6 $" testname="$RCSfile: masking-opacity-01-b.svg,v $">
-    <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/masking.html#ObjectAndGroupOpacityProperties">
-      <p>
-        Test to see the effect of applying an opacity property to a group.
-      </p>
-      <p>
-        A blue rectangle with a green rectangle on top are contained in a
-        group. This opacity of the group and the opacity of the rectangles are
-        changed in this test. A red rectangle is provided in the background so
-        that opacity changes are obvious visually.
-      </p>
-      <p>
-        From top to bottom, the tests are as follows.
-      </p>
-      <p>
-        In the top test, the opacities of the group and the individual rectangles are
-        all set to 1. 
-      </p>
-      <p>
-        In the second test, the group is given an opacity of 0.5. 
-      </p>
-      <p>
-        In the third test, the group maintains a group opacity of 1 whereas each individual
-        rectangle is given an opacity of 0.5 in the group. 
-      </p>
-      <p>
-        Lastly, the group and individual rectangles are all given an opacity of 0.5.
-      </p>
-
-
-    </d:testDescription>
-    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        Run the test. No interaction required.
-      </p>
-    </d:operatorScript>
-    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        In the top test, the green rectangle should appear on top of the blue
-        rectangle.
-      </p>
-      <p>
-        In the second test, the blue
-        rectangle should not show through in the region where the green and blue overlap.
-      </p>
-      <p>
-        In the third test, the blue rectangle
-        should show through in the overlap region.
-      </p>
-      <p>
-        Lastly, the
-        result should be similar to the previous test only fainter (because the opacity) is
-        resulting in less contribution.
-      </p>
-      <p>
-        The rendered picture should match the reference image exactly, except for possible
-        variations in the labelling text (per CSS2 rules).
-      </p>
-    </d:passCriteria>
-  </d:SVGTestCase>
-  <title id="test-title">$RCSfile: masking-opacity-01-b.svg,v $</title>
-  <defs>
-    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
-      <font-face-src>
-        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
-      </font-face-src>
-    </font-face>
-  </defs>
-  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
-    <text font-size="24" x="50" y="27">Test for opacity property on a group.</text>
-    <rect x="10" y="30" width="100" height="260" fill="red"/>
-    <g opacity="1">
-      <rect x="60" y="50" width="80" height="40" fill="blue"/>
-      <rect x="70" y="60" width="80" height="40" fill="lime"/>
-    </g>
-    <text font-size="20" x="200" y="62">Group opacity: 1</text>
-    <text font-size="20" x="200" y="80">Blue rectangle opacity: 1</text>
-    <text font-size="20" x="200" y="98">Green rectangle opacity: 1</text>
-    <g opacity="0.5">
-      <rect x="60" y="110" width="80" height="40" fill="blue"/>
-      <rect x="70" y="120" width="80" height="40" fill="lime"/>
-    </g>
-    <text font-size="20" x="200" y="122">Group opacity: 0.5</text>
-    <text font-size="20" x="200" y="140">Blue rectangle opacity: 1</text>
-    <text font-size="20" x="200" y="158">Green rectangle opacity: 1</text>
-    <g opacity="1">
-      <rect x="60" y="170" width="80" height="40" fill="blue" opacity=".5"/>
-      <rect x="70" y="180" width="80" height="40" fill="lime" opacity=".5"/>
-    </g>
-    <text font-size="20" x="200" y="182">Group opacity: 1</text>
-    <text font-size="20" x="200" y="200">Blue rectangle opacity: 0.5</text>
-    <text font-size="20" x="200" y="218">Green rectangle opacity: 0.5</text>
-    <g opacity="0.5">
-      <rect x="60" y="230" width="80" height="40" fill="blue" opacity=".5"/>
-      <rect x="70" y="240" width="80" height="40" fill="lime" opacity=".5"/>
-    </g>
-    <text font-size="20" x="200" y="242">Group opacity: 0.5</text>
-    <text font-size="20" x="200" y="260">Blue rectangle opacity: 0.5</text>
-    <text font-size="20" x="200" y="278">Green rectangle opacity: 0.5</text>
-  </g>
-  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
-    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
-  </g>
-  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
-  <!-- comment out this watermark once the test is approved -->
-  <!--<g id="draft-watermark">
-    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
-    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
-      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
-  </g>-->
-</svg>
--- a/tests/fixtures/reftests/svg1.1/masking-path-01-b.svg
+++ /dev/null
@@ -1,95 +0,0 @@
-<svg version="1.1" baseProfile="basic" id="svg-root"
-  width="100%" height="100%" viewBox="0 0 480 360"
-  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <!--======================================================================-->
-  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
-  <!--======================================================================-->
-  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
-  <!--=  Institute of Technology, European Research Consortium for         =-->
-  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
-  <!--=  All Rights Reserved.                                              =-->
-  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
-  <!--======================================================================-->
-  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
-    template-version="1.4" reviewer="CL" author="LH" status="accepted"
-    version="$Revision: 1.7 $" testname="$RCSfile: masking-path-01-b.svg,v $">
-    <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/masking.html#ClippingPaths">
-      <p>
-        Test to see if the basic clipping works using the clipPath element
-        and the clip-path property.
-      </p>
-      <p>
-        This test uses the following elements : &lt;clipPath&gt; and the following
-        properties : clip-path.
-      </p>
-    </d:testDescription>
-    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        Run the test. No interaction required.
-      </p>
-    </d:operatorScript>
-    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        The test at the top shows an orange rectangle (with black stroke) being clipped by another rectangle.
-        So only the middle portion of the orange rectangle should be visible. Also the black stroke should
-        only be visible along the top and bottom edge of the rectangle.
-      </p>
-      <p>
-        The example at the bottom has a group containing a text string and two rectangles. The group
-        has a clipping path defined using two  overlapping rectangles. Of concern is the overlapping area
-        shared by the two rectangles. There should not be holes in this overlapping area, the
-        clip region is the union of the two rectangles. For clarity,
-        guide rectangles in grey show the position of the clipping rectangles.
-      </p>
-      <p>
-        The rendered picture should match the reference image exactly, except for possible
-        variations in the labelling text (per CSS2 rules).
-      </p>
-    </d:passCriteria>
-  </d:SVGTestCase>
-  <title id="test-title">$RCSfile: masking-path-01-b.svg,v $</title>
-  <defs>
-    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
-      <font-face-src>
-        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
-      </font-face-src>
-    </font-face>
-  </defs>
-  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
-    <g shape-rendering="geometricPrecision">
-      <!--text font-size="14"  x="10" y="20">Test for clipping using clipPath element</text-->
-      <defs>
-        <clipPath id="clip1">
-          <rect x="200" y="10" width="60" height="100"/>
-        </clipPath>
-        <clipPath id="clip2">
-          <rect x="90" y="150" width="175" height="100"/>
-          <rect x="225" y="160" width="95" height="75"/>
-        </clipPath>
-      </defs>
-      <rect x="20" y="20" width="440" height="60" fill="orange" stroke="black" stroke-width="5" clip-path="url(#clip1)"/>
-      <text font-size="30" x="20" y="130">Rectangle being clipped</text>
-      <g clip-path="url(#clip2)">
-        <rect x="115" y="190" width="225" height="40" fill="aqua" stroke="blue" stroke-width="5"/>
-        <rect x="115" y="240" width="225" height="40" fill="lime" stroke="green" stroke-width="5"/>
-        <text font-size="30" x="115" y="180">Line of text to be clipped</text>
-      </g>
-      <text font-size="30" x="20" y="280">Group being clipped</text>
-      <!--  show the two rects and the overlap area -->
-      <g fill="none" stroke="#999" stroke-width="2">
-        <rect x="90" y="150" width="175" height="100"/>
-        <rect x="225" y="160" width="95" height="75"/>
-      </g>
-    </g>
-  </g>
-  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
-    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
-  </g>
-  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
-  <!-- comment out this watermark once the test is approved -->
-  <!--<g id="draft-watermark">
-    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
-    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
-      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
-  </g>-->
-</svg>
--- a/tests/fixtures/reftests/svg1.1/masking-path-02-b.svg
+++ /dev/null
@@ -1,84 +0,0 @@
-<svg version="1.1" baseProfile="basic" id="svg-root"
-  width="100%" height="100%" viewBox="0 0 480 360"
-  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <!--======================================================================-->
-  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
-  <!--======================================================================-->
-  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
-  <!--=  Institute of Technology, European Research Consortium for         =-->
-  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
-  <!--=  All Rights Reserved.                                              =-->
-  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
-  <!--======================================================================-->
-  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
-    template-version="1.4" reviewer="SVGWG" author="Haroon Sheikh" status="accepted"
-    version="$Revision: 1.8 $" testname="$RCSfile: masking-path-02-b.svg,v $">
-    <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/masking.html#ClippingPaths">
-      <p>
-        Test to see if clipPathUnits attribute is handled properly on a
-        clipPath element. Only tests the userSpaceOnUse and
-        objectBoundingBox items of the clipPathUnits. userSpace has been
-        tested by the previous test as it is the default.
-      </p>
-      <p>
-        The test at the top shows a pink rectangle that has been clipped by a
-        rectangular clipping path. The clipping path is defined using clipPathUnits=objectBoundingBox.
-        
-      </p>
-      <p>
-        The example at the bottom a rotated blue rectangle that has been clipped by a
-        rectangular clipping path. The clipping path is defined using clipPathUnits=userSpaceOnUse.
-        
-      </p>
-      <p>
-        The rendered picture should match the reference image exactly, except for possible
-        variations in the labelling text (per CSS2 rules).
-      </p>
-    </d:testDescription>
-    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        Run the test. No interaction required.
-      </p>
-    </d:operatorScript>
-    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        The test passes if the pink rectangle and blue diamond do not have any
-        color painted outside of their black borders.
-      </p>
-    </d:passCriteria>
-  </d:SVGTestCase>
-  <title id="test-title">$RCSfile: masking-path-02-b.svg,v $</title>
-  <defs>
-    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
-      <font-face-src>
-        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
-      </font-face-src>
-    </font-face>
-  </defs>
-  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
-    <g shape-rendering="geometricPrecision">
-      <clipPath id="clip1" clipPathUnits="objectBoundingBox">
-        <rect x=".25" y=".5" width=".6" height="1"/>
-      </clipPath>
-      <rect x="10" y="10" width="430" height="80" fill="#F08" clip-path="url(#clip1)"/>
-      <rect x="117" y="50" width="258" height="40" fill="none" stroke="black" stroke-width="4"/>
-      <text font-size="30" x="20" y="130">clipPathUnits=objectBoundingBox</text>
-      <clipPath id="clip2" clipPathUnits="userSpaceOnUse">
-        <rect x="60" y="60" width="80" height="80"/>
-      </clipPath>
-      <rect transform="translate(100 200) rotate(-45)" x="0" y="0" width="120" height="120" fill="blue" clip-path="url(#clip2)"/>
-      <rect transform="translate(100 200) rotate(-45)" x="60" y="60" width="60" height="60" fill="none" stroke="black" stroke-width="4"/>
-      <text font-size="30" x="20" y="280">clipPathUnits=userSpaceOnUse</text>
-    </g>
-  </g>
-  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
-    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text>
-  </g>
-  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
-  <!-- comment out this watermark once the test is approved -->
-  <!--<g id="draft-watermark">
-    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
-    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
-      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
-  </g>-->
-</svg>
--- a/tests/fixtures/reftests/svg1.1/masking-path-03-b.svg
+++ /dev/null
@@ -1,134 +0,0 @@
-<svg version="1.1" baseProfile="basic" id="svg-root"
-  width="100%" height="100%" viewBox="0 0 480 360"
-  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <!--======================================================================-->
-  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
-  <!--======================================================================-->
-  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
-  <!--=  Institute of Technology, European Research Consortium for         =-->
-  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
-  <!--=  All Rights Reserved.                                              =-->
-  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
-  <!--======================================================================-->
-  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
-    template-version="1.4" reviewer="SVGWG" author="Jon Ferraiolo" status="accepted"
-    version="$Revision: 1.7 $" testname="$RCSfile: masking-path-03-b.svg,v $">
-    <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/masking.html#ClippingPaths">
-      <p>
-        Test 'overflow'/'clip' on outermost and inner 'svg' elements.
-      </p>
-      <p>
-        There are two parts to the test. The first part tests viewport clipping
-        on outermost 'svg' elements. The second part tests viewport clipping
-        on inner 'svg' elements.
-      </p>
-      <p>
-        The test case also tests the initial value of the 'overflow' property
-        to ensure that it is set to 'hidden' for all 'svg' elements.
-        Tester should zoom out and/or pan to check this.
-      </p>
-      <p>
-        To test clipping to the outermost 'svg' element,
-        a rectangle with a light blue interior, a light red border and a black
-        string that says "Clip to outer 'svg'" is painted four times such that
-        it will overflow each of the top, left, right and bottom
-        sides of the bounds of the outermost 'svg' element, respectively.
-      </p>
-      <p>
-        To test clipping to inner 'svg' elements, a rectangle with a light red
-        interior, a light blue border and a black string that says "Clip to
-        inner 'svg'" is painted four times such that it will overflow each of
-        the top, left, right and bottom sides of the bounds of an inner 'svg'
-        element, respectively.  
-      </p>
-      <p>
-        Note that minor text layout differences, as are permissible under CSS2
-        rules, can lead to slightly different visual results regarding where
-        the text strings get clipped.
-      </p>
-    </d:testDescription>
-    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        Run the test. No interaction required.
-      </p>
-    </d:operatorScript>
-    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
-      <p>The test passes if:</p>
-      <ul>
-        <li>The four "Outer Clip" boxed strings must not render outside the
-        outermost 'svg' element (the 480x360 rectangular viewport) and
-        must continue to be clipped to this viewport if the image is zoomed in or out,
-        or panned.</li>
-        <li>The four "Inner Clip" boxed strings must not render outside the
-        bounds of the green rectangle.</li>
-      </ul>
-    </d:passCriteria>
-  </d:SVGTestCase>
-  <title id="test-title">$RCSfile: masking-path-03-b.svg,v $</title>
-  <defs>
-    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
-      <font-face-src>
-        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
-      </font-face-src>
-    </font-face>
-  </defs>
-  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
-    <g shape-rendering="geometricPrecision">
-      <!--text font-size="18" text-anchor="middle" x="240" y="70">Test 'overflow'/'clip' on outermost and inner 'svg' elements</text-->
-      <text font-size="18" x="10" y="70">Test 'overflow'/'clip' on outermost and inner 'svg' elements</text>
-      <!-- Test initial value for 'overflow' property (i.e., hidden)
-       on outermost 'svg' -->
-      <g font-size="48" stroke-width="2">
-        <g transform="translate(115,-20)">
-          <rect width="250" height="60" fill="#ccccff" stroke="#ff8888"/>
-          <text x="15" y="45">Outer Clip</text>
-        </g>
-        <g transform="translate(-175,150)">
-          <rect width="250" height="60" fill="#ccccff" stroke="#ff8888"/>
-          <text x="15" y="45">Outer Clip</text>
-        </g>
-        <g transform="translate(405,150)">
-          <rect width="250" height="60" fill="#ccccff" stroke="#ff8888"/>
-          <text x="15" y="45">Outer Clip</text>
-        </g>
-        <g transform="translate(115,330)">
-          <rect width="250" height="60" fill="#ccccff" stroke="#ff8888"/>
-          <text x="15" y="45">Outer Clip</text>
-        </g>
-      </g>
-      <!-- Test initial value for 'overflow' property (i.e., hidden)
-       on inner 'svg' -->
-      <rect x="115" y="100" width="250" height="160" fill="none" stroke="#006600" stroke-width="5"/>
-      <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="115" y="100" width="250" height="160">
-        <g font-size="32" stroke-width="2">
-          <g transform="translate(50,-15)">
-            <rect width="150" height="35" fill="#ffaaaa" stroke="#6666ff"/>
-            <text x="6" y="26">Inner Clip</text>
-          </g>
-          <g transform="translate(-50,62.5)">
-            <rect width="150" height="35" fill="#ffaaaa" stroke="#6666ff"/>
-            <text x="6" y="26">Inner Clip</text>
-          </g>
-          <g transform="translate(150,62.5)">
-            <rect width="150" height="35" fill="#ffaaaa" stroke="#6666ff"/>
-            <text x="6" y="26">Inner Clip</text>
-          </g>
-          <g transform="translate(50,140)">
-            <rect width="150" height="35" fill="#ffaaaa" stroke="#6666ff"/>
-            <text x="6" y="26">Inner Clip</text>
-          </g>
-        </g>
-      </svg>
-    </g>
-  </g>
-  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
-    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
-  </g>
-  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
-  <!-- comment out this watermark once the test is approved -->
-  <!--<g id="draft-watermark">
-    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
-    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
-      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
-  </g>-->
-</svg>
--- a/tests/fixtures/reftests/svg1.1/masking-path-04-b.svg
+++ /dev/null
@@ -1,79 +0,0 @@
-<svg version="1.1" baseProfile="basic" id="svg-root"
-  width="100%" height="100%" viewBox="0 0 480 360"
-  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <!--======================================================================-->
-  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
-  <!--======================================================================-->
-  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
-  <!--=  Institute of Technology, European Research Consortium for         =-->
-  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
-  <!--=  All Rights Reserved.                                              =-->
-  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
-  <!--======================================================================-->
-  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
-    template-version="1.4" reviewer="SVGWG" author="Chris Lilley" status="accepted"
-    version="$Revision: 1.5 $" testname="$RCSfile: masking-path-04-b.svg,v $">
-    <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/masking.html#ClippingPaths">
-      <p>
-        This test exercises basic user-specified clip paths, using a text
-        string (i.e., content of a 'text' element) as the clip path.
-      </p>
-      <p>
-        There is a rectangular image of a swirly blue pattern with large
-        yellow text, "Clip Test" superimposed. The image is a PNG file,
-        imported into the picture via the 'image' element.
-      </p>
-      <p>
-        The test uses the 'rect' element, as well as basic fill (solid primary
-        colors), stroke (black 1-pixel lines), font-family (Arial and
-        Impact) and font-size properties.
-      </p>
-    </d:testDescription>
-    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        Run the test. No interaction required.
-      </p>
-    </d:operatorScript>
-    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        The rendered picture should match the reference image, except for
-        possible variations in the labelling text (per CSS2 rules).
-      </p>
-    </d:passCriteria>
-  </d:SVGTestCase>
-  <title id="test-title">$RCSfile: masking-path-04-b.svg,v $</title>
-  <defs>
-    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
-      <font-face-src>
-        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
-      </font-face-src>
-    </font-face>
-  </defs>
-  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
-    <g shape-rendering="geometricPrecision">
-      <defs>
-        <clipPath id="sample" clipPathUnits="userSpaceOnUse">
-          <text x="45" y="270" font-size="100" font-family="Impact">Clip Test</text>
-        </clipPath>
-      </defs>
-
-      <g>
-        <image xlink:href="resources/bluesquidj.png" preserveAspectRatio="none" x="30" y="20" width="410" height="140"/>
-        <text x="55" y="130" font-size="100" font-family="Impact" fill="yellow">Clip Test</text>
-      </g>
-      <g>
-        <image xlink:href="resources/bluesquidj.png" preserveAspectRatio="none" x="20" y="170" width="410" height="160" clip-path="url(#sample)"/>
-      </g>
-    </g>
-  </g>
-  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
-    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
-  </g>
-  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
-  <!-- comment out this watermark once the test is approved -->
-  <!--<g id="draft-watermark">
-    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
-    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
-      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
-  </g>-->
-</svg>
--- a/tests/fixtures/reftests/svg1.1/struct-cond-03-t.svg
+++ /dev/null
@@ -1,83 +0,0 @@
-<svg version="1.1" baseProfile="tiny" id="svg-root"
-  width="100%" height="100%" viewBox="0 0 480 360"
-  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <!--======================================================================-->
-  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
-  <!--======================================================================-->
-  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
-  <!--=  Institute of Technology, European Research Consortium for         =-->
-  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
-  <!--=  All Rights Reserved.                                              =-->
-  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
-  <!--======================================================================-->
-  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
-    template-version="1.4" reviewer="CN" author="VH" status="accepted"
-    version="$Revision: 1.7 $" testname="$RCSfile: struct-cond-03-t.svg,v $">
-    <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/struct.html#ConditionalProcessing">
-        <p>
-          Tests the &lt;switch&gt; element with requiredFeatures.
-        </p>
-    </d:testDescription>
-    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        Run the test. No interaction required.
-      </p>
-    </d:operatorScript>
-    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
-      <p>
-        On the bottom half of the test, there is a first switch. 
-        Because SVG Tiny does not support DOM, an SVG Tiny implementation
-        which does not support other SVG Profiles should show a green
-        rectangle. If the application supports the DOM, meaning that
-        it does more than just SVG Tiny, it should show a turquoise rectangle.
-      </p>
-      <p>
-        On the bottom half of the test, there is another switch.
-        The first child has a requiredFeatures set to
-        http://www.w3.org/TR/SVG11/feature#BasicText which all
-        SVG Tiny implementations should support. If the application
-        does, another green rectangle is displayed. Otherwise,
-        a red rectangle shows.
-      </p>
-    </d:passCriteria>
-  </d:SVGTestCase>
-  <title id="test-title">$RCSfile: struct-cond-03-t.svg,v $</title>
-  <defs>
-    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
-      <font-face-src>
-        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
-      </font-face-src>
-    </font-face>
-  </defs>
-  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
-    <switch>
-      <g requiredFeatures="http://www.w3.org/TR/SVG11/feature#SVGDOM">
-        <rect x="30" y="20" width="420" height="130" fill="rgb(32, 178, 170)"/>
-        <text x="240" y="100" font-size="20" text-anchor="middle">This viewer does more than SVG Tiny</text>
-      </g>
-      <g>
-        <rect x="30" y="20" width="420" height="130" fill="#0F0"/>
-      </g>
-    </switch>
-
-    <switch transform="translate(0, 140)">
-      <g requiredFeatures="http://www.w3.org/TR/SVG11/feature#BasicText">
-        <rect x="30" y="20" width="420" height="130" fill="#0F0"/>
-      </g>
-      <g>
-        <rect x="30" y="20" width="420" height="130" fill="#F00"/>
-        <text x="240" y="100" font-size="20" text-anchor="middle">This is not an SVG Tiny Viewer</text>
-      </g>
-    </switch>
-  </g>
-  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
-    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
-  </g>
-  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
-  <!-- comment out this watermark once the test is approved -->
-  <!--<g id="draft-watermark">
-    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
-    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
-      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
-  </g>-->
-</svg>
--- a/tests/fixtures/reftests/bugs/340047.svg
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-
-<svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="744.09448819"
-   height="1052.3622047"
-   id="svg2"
-   version="1.1"
-   inkscape:version="0.47 r22583"
-   sodipodi:docname="New document 1">
-
-    <g fill = "navy">
-        <text x = "10" y = "25" font-size = "20">
-            <tspan>
-                e = mc
-                <tspan baseline-shift = "super">
-                    2
-                </tspan>
-            </tspan>
-            <tspan x = "10" y = "60">
-                T
-                <tspan baseline-shift = "sub">
-                    i+2
-                </tspan>
-                =T
-                <tspan baseline-shift = "sub">
-                    i
-                </tspan>
-                + T
-                <tspan baseline-shift = "sub">
-                    i+1
-                </tspan>
-            </tspan>
-        </text>
-    </g>
-</svg>
--- a/tests/fixtures/reftests/bugs/587721-text-transform.svg
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg width="1179.75118pt" height="687.74173pt"
-     viewBox="0 0 1179.75118 687.74173"
-     enable-background="new 0 0 1179.75118 687.74173"
-     version="1.1" xmlns="http://www.w3.org/2000/svg"
-     xmlns:xlink="http://www.w3.org/1999/xlink" >
-
-  <g font-family="'DejaVu Sans'" font-size="1" kerning="0" font-weight="400" fill="#000000">
-    <text transform="matrix(12 0 0 12 929.88438 660.96434)">Frenchtown</text>
-  </g>
-		
-</svg>
--- a/tests/fixtures/reftests/bugs/749415.svg
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="643.56433" height="257.42575" id="svg2852">
-  <defs id="defs2854"/>
-  <g transform="translate(-58.921894,66.069669)" id="layer1">
-    <text x="69.253036" y="-29.653135" id="text3167" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="69.253036" y="-29.653135" id="tspan3169">1</tspan></text>
-    <text x="69.253036" y="179.25775" id="text3167-4" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="69.253036" y="179.25775" id="tspan3273">6</tspan></text>
-    <text x="69.253036" y="137.47557" id="text3167-48" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="69.253036" y="137.47557" id="tspan3271">5</tspan></text>
-    <text x="69.253036" y="95.693436" id="text3167-45" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="69.253036" y="95.693436" id="tspan3269">4</tspan></text>
-    <text x="69.253036" y="53.911259" id="text3167-7" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="69.253036" y="53.911259" id="tspan3267">3</tspan></text>
-    <text x="69.253036" y="12.129059" id="text3167-2" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="69.253036" y="12.129059" id="tspan3265">2</tspan></text>
-    <g transform="matrix(1.5,0,0,1.5,397.76677,54.817007)" id="g3300">
-      <rect width="4.8888898" height="4.6808534" x="-192.98616" y="-71.900017" id="rect2862-2-1-7-2-61" style="fill:#19b2ce;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
-      <rect width="2" height="16" x="-87.267052" y="-182.85747" transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0)" id="rect2862-2-1-7-2-2-4-42" style="fill:#19b2ce;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
-    </g>
-    <text x="164.86249" y="-28.66876" id="text3304" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="164.86249" y="-28.66876" id="tspan3308">Tip mass 0.5 kg</tspan></text>
-    <rect width="44.000343" height="14.666781" x="97.317757" y="-7.0793319" id="rect2862-2-1-7-4-4-6" style="fill:#ce9919;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"/>
-    <text x="161.62811" y="12.691559" id="text3304-7" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="161.62811" y="12.691559" id="tspan3408">Liquid crystal device</tspan></text>
-    <rect width="28.712872" height="28.712872" x="104.96149" y="27.906385" id="rect3434" style="fill:#cdd9ec;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
-    <text x="161.62811" y="54.473759" id="text3304-4" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="161.62811" y="54.473759" id="tspan3461">Membrane 7.5 um thick</tspan></text>
-    <rect width="26.400206" height="13.200104" x="106.11783" y="77.429321" id="rect2862-2-1-7-4-44-4-2-33" style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#808080;stroke-width:0.73499995;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"/>
-    <text x="162.65936" y="96.677811" id="text3304-7-2" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="162.65936" y="96.677811" id="tspan3542">Solar cells 25 um thick</tspan></text>
-    <g transform="translate(-11.463337,-2.9292343)" id="g3588">
-      <path d="m 82.3125,172.71875 -32.21875,32.21875 2.8125,0 30.8125,-30.8125 -1.40625,-1.40625 z" transform="translate(58.921894,-65.07957)" id="rect2862-2-1-7-2-2-3-8-7" style="fill:#ceaa19;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
-      <path d="m 92.21875,182.59375 -23.3125,23.34375 2.8125,0 21.90625,-21.90625 -1.40625,-1.4375 z" transform="translate(58.921894,-65.07957)" id="rect2862-2-1-7-2-2-3-5-9-9" style="fill:#1982ce;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
-    </g>
-    <text x="162.47852" y="138.45995" id="text3304-3" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="162.47852" y="138.45995" id="tspan3617">Tethers</tspan></text>
-    <path d="m 187.32394,828.41852 a 83.098595,83.098595 0 1 1 -166.197185,0 83.098595,83.098595 0 1 1 166.197185,0 z" transform="matrix(0.24067796,0,0,0.24067796,94.233178,-31.78839)" id="path3939-9" style="fill:#0000ff;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
-    <path d="m 187.32394,828.41852 a 83.098595,83.098595 0 1 1 -166.197185,0 83.098595,83.098595 0 1 1 166.197185,0 z" transform="matrix(0.06016949,0,0,0.06016949,438.17176,92.436)" id="path3939-5-1-8" style="fill:#f3dd00;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
-    <path d="m 187.32394,828.41852 a 83.098595,83.098595 0 1 1 -166.197185,0 83.098595,83.098595 0 1 1 166.197185,0 z" transform="matrix(0.06016949,0,0,0.06016949,453.02324,75.60432)" id="path3939-5-6-6" style="fill:#f3dd00;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
-    <path d="m 187.32394,828.41852 a 83.098595,83.098595 0 1 1 -166.197185,0 83.098595,83.098595 0 1 1 166.197185,0 z" transform="matrix(0.06016949,0,0,0.06016949,424.31037,84.5152)" id="path3939-5-5-5" style="fill:#f3dd00;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
-    <path d="m 187.32394,828.41852 a 83.098595,83.098595 0 1 1 -166.197185,0 83.098595,83.098595 0 1 1 166.197185,0 z" transform="matrix(0.06016949,0,0,0.06016949,440.15195,61.74293)" id="path3939-5-0-0" style="fill:#f3dd00;fill-opacity:1;fill-rule:nonzero;stroke:none"/>
-    <text x="159.24414" y="179.82025" id="text3304-3-6" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="159.24414" y="179.82025" id="tspan3684">Main body</tspan></text>
-    <text x="485.80463" y="138.83588" id="text3304-3-6-2" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="485.80463" y="138.83588" id="tspan3711">Instruments</tspan></text>
-    <text x="392.2764" y="138.83588" id="text3167-4-8" xml:space="preserve" style="font-size:32px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:100%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sans;-inkscape-font-specification:DejaVu Sans"><tspan x="392.2764" y="138.83588" id="tspan3738">7</tspan></text>
-    <rect width="643.56433" height="257.42575" x="0" y="-0.99009901" transform="translate(58.921894,-65.07957)" id="rect3740" style="fill:none;stroke:none"/>
-  </g>
-</svg>
\ No newline at end of file
--- a/tests/fixtures/reftests/bugs/777834-empty-text-children.svg
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
-"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"
-[
- <!ATTLIST svg
-  xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
-]>
-<!-- Created with Sodipodi ("http://www.sodipodi.com/") -->
-<svg
-   width="45.1555mm"
-   height="45.1555mm"
-   id="svg260"
-   sodipodi:version="0.26"
-   sodipodi:docname="/mnt/windows/Themes/Sodipodi/text-gradient-3.svg"
-   sodipodi:docbase="/mnt/windows/Themes/Sodipodi/"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:xlink="http://www.w3.org/1999/xlink">
-  <sodipodi:namedview
-     id="base" />
-  <defs
-     id="defs261">
-    <linearGradient
-       id="id0"
-       x1="159"
-       y1="84"
-       x2="7"
-       y2="-2">
-      <stop
-         offset="0.000000"
-         style="stop-color:#009240;stop-opacity:1;"
-         id="stop255" />
-      <stop
-         offset="1.000000"
-         style="stop-color:#b9db7d;stop-opacity:1;"
-         id="stop256" />
-    </linearGradient>
-    <linearGradient
-       x1="0.155172"
-       y1="-0.142973"
-       x2="0.748276"
-       y2="1.15946"
-       xlink:href="#id0"
-       id="linearGradient522" />
-  </defs>
-  <text
-     style="fill:black;stroke:none;font-family:helvetica;font-style:normal;font-weight:normal;font-size:12px;fill-opacity:1;stroke-opacity:1;stroke-width:1pt;stroke-linejoin:miter;stroke-linecap:butt;"
-     x="5.566449"
-     y="15.719979"
-     id="text278"
-     transform="scale(1.63731,2.40117)">
-    <tspan
-       id="tspan279">
-Hello World!</tspan>
-  </text>
-  <text
-     style="fill:url(#linearGradient522);stroke:none;font-family:helvetica;font-style:normal;font-weight:normal;font-size:12px;fill-opacity:1;stroke-opacity:1;stroke-width:1pt;stroke-linejoin:miter;stroke-linecap:butt;"
-     x="5.315264"
-     y="29.372340"
-     id="text281"
-     transform="scale(1.63731,2.40117)">
-    <tspan
-       id="tspan282"
-       style="fill:url(#linearGradient522);">
-Hello World!</tspan>
-  </text>
-  <text
-     style="fill:url(#linearGradient522);stroke:#003500;font-family:helvetica;font-style:normal;font-weight:normal;font-size:12px;fill-opacity:1;stroke-opacity:1;stroke-width:0.189127;stroke-linejoin:miter;stroke-linecap:butt;"
-     x="5.315264"
-     y="41.984471"
-     id="text536"
-     transform="scale(1.63731,2.40117)">
-    <tspan
-       id="tspan537"
-       style="fill:url(#linearGradient522);stroke:#003500;stroke-opacity:1;stroke-width:0.189127;">
-Hello World!</tspan>
-  </text>
-</svg>
